package com.owen.pojo;

import org.w3c.dom.Text;

import java.io.Serializable;
import java.util.Date;

// 商品实体类
public class Order implements Serializable {

    // 主键ID
    private Integer id;

    // 地址
    private String address;

    // 下单时间
    private Date createtime;

    // 描述
    private String details;

    // 商品名
    private String name;

    // 订单ID
    private String orderId;

    // 电话
    private String phone;

    // 状态
    private String status;

    // 总价
    private Long totalprice;

    // 用户ID
    private Integer userId;

    // 用户姓名
    private String userName;

    public Order() {
    }

    public Order(Integer id, String address, Date createtime, String details, String name, String orderId, String phone, String status, Long totalprice, Integer userId, String userName) {
        this.id = id;
        this.address = address;
        this.createtime = createtime;
        this.details = details;
        this.name = name;
        this.orderId = orderId;
        this.phone = phone;
        this.status = status;
        this.totalprice = totalprice;
        this.userId = userId;
        this.userName = userName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getTotalprice() {
        return totalprice;
    }

    public void setTotalprice(Long totalprice) {
        this.totalprice = totalprice;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", address='" + address + '\'' +
                ", createtime=" + createtime +
                ", details=" + details +
                ", name='" + name + '\'' +
                ", orderId='" + orderId + '\'' +
                ", phone='" + phone + '\'' +
                ", status='" + status + '\'' +
                ", totalprice=" + totalprice +
                ", userId=" + userId +
                ", userName=" + userName +
                '}';
    }
}